import request from '@/utils/request'



export const upload = {
  avatar: request.baseUrl + '/api/ossFiles/avatar',
  ifBG: request.baseUrl + '/api/ossFiles/ifBG',
  cert: request.baseUrl + '/api/ossFiles/cert'
}

// Get ISV pay config list
export function getIsvPayConfigList(data) {
  return request({
    url: '/api/pay/isv/config/list',
    method: 'get',
    params: data
  })
}

// Get pay list
export function getPayList(isvNo) {
  return request({
    url: '/api/isvInfo/getPayList',
    method: 'get',
    params: { isvNo }
  })
}

export function getIsvPayConfigUnique (infoId, ifCode) {
  return request({
    url: '/api/isv/payConfigs/' + infoId + '/' + ifCode,
    method: 'get'
  })
}

export function savePayConfig (infoId, ifCode,params) {
  return request({
    url: '/api/isv/payConfigs/save/' + infoId + '/' + ifCode,
    method: 'POST',
    data: params
  })
}

  